@ var head={
<title>考试座位</title>

<style>
.datagrid-header-rownumber, .datagrid-cell-rownumber {
	width: 40px;
}
</style>
@}; var ctrls= "ng-controller='KaoshizwCtrls'" ; var body ={

<div class="easyui-layout" data-options="fit : true,border : false">

	@if( so.hasPermission("/business/xuesheng/add")) {
	<div ng-model="so_add" ng-init="so_add=true"></div>
	@}if( so.hasPermission("/business/xuesheng/edit")) {
	<div ng-model="so_eidt" ng-init="so_edit=true"></div>
	@}if( so.hasPermission("/business/xuesheng/delete")) {
	<div ng-model="so_delete" ng-init="so_delete=true"></div>
	@}if( so.hasPermission("/business/xuesheng/batchDelete")) {
	<div ng-model="so_batchDelete" ng-init="so_batchDelete=true"></div>
	@}if( so.hasPermission("/business/xuesheng/export")) {
	<div ng-model="so_export" ng-init="so_export=true"></div>
	@}if( so.hasPermission("/business/xuesheng/importExcel")) {
	<div ng-model="so_importExcel" ng-init="so_importExcel=true"></div>
	@}if( so.hasPermission("/business/xuesheng/importExcel")) {
	<div ng-model="so_getZw" ng-init="so_getZw=true"></div>
	@}if( so.hasPermission("/business/xuesheng/importExcel")) {
	<div ng-model="so_sendZw" ng-init="so_sendZw=true"></div>
	@}
	<div
		data-options="region:'north',title:'查询条件',border:false,collapsed:true,"
		style="height: 160px; overflow: hidden;">
		<form id="searchForm">
			<table class="table table-hover table-condensed"
				style="display: none;">
				<tr>
					<th>姓名</th>
					<td><input name="name" class="span2" /></td>
					<th>准考证</th>
					<td><input name="zkz" class="span2" /></td>
					<th>手机号码</th>
					<td><input name="mobile" class="span2" /></td>

				</tr>
				<tr>
					<th>所属号码</th>
					<td><input name="sshm" class="span2" /></td>
					<th>批次</th>
					<td><input name="pici" class="span2" /></td>
					<th>科目</th>
					<td><input name="kemu" class="span2" /></td>
				</tr>
				<tr>
					<th>考场</th>
					<td><input name="kaochang" class="span2" /></td>
					<th>地址</th>
					<td><input name="dizhi" class="span2" /></td>
				</tr>
			</table>
		</form>
	</div>
	<div data-options="region:'center',border:false">
		<table id="dataGrid"></table>
	</div>

	<div id="toolbar" style="display: none;">
		<a ng-show="so_add" ng-click="addFun()" href="javascript:void(0);"
			class="easyui-linkbutton" data-options="plain:true,iconCls:'bug_add'">添加</a>
		<a ng-show="so_export" ng-click="exportFun()"
			href="javascript:void(0);" class="easyui-linkbutton"
			data-options="plain:true,iconCls:'excel'">导出</a> <a
			ng-show="so_batchDelete" ng-click="batchDeleteFun()"
			href="javascript:void(0);" class="easyui-linkbutton"
			data-options="plain:true,iconCls:'delete'">批量删除</a> <a
			href="javascript:void(0);" class="easyui-linkbutton"
			data-options="iconCls:'brick_add',plain:true" ng-click="searchFun();">过滤条件</a><a
			href="javascript:void(0);" class="easyui-linkbutton"
			data-options="iconCls:'brick_delete',plain:true"
			ng-click="cleanFun();">清空条件</a>	<a ng-show="so_getZw" ng-click="getZwFun()"
			href="javascript:void(0);" class="easyui-linkbutton"
			data-options="plain:true,iconCls:'excel'">获取座位</a>
			<a style="float:right"ng-show="so_sendZw" ng-click="sendZwFun()"
			href="javascript:void(0);" class="easyui-linkbutton"
			data-options="plain:true,iconCls:'excel'">发送座位</a>

	</div>

	<div id="menu" class="easyui-menu" style="width: 120px; display: none;">

		<div ng-show="so_add" ng-click="addFun();"
			data-options="iconCls:'pencil_add'">增加</div>
		<div ng-show="so_delete" ng-click="deleteFun();"
			data-options="iconCls:'pencil_delete'">删除</div>
		<div ng-show="so_edit" ng-click="editFun();"
			data-options="iconCls:'pencil'">编辑</div>
	</div>
	<!--  dialog -->
	<div id="dlg" class="easyui-dialog"
		style="width: 580px; height: 380px; padding: 5px 10px" closed="true"
		buttons="#dlg-buttons" data-options="resizable:true,modal:true">

		<div class="easyui-layout" data-options="fit:true,border:false">
			<div data-options="region:'center',border:false" title=""
				style="overflow: hidden;">
				<form id="fm" method="post">
					<input name="id" type="hidden">
					<table class="table table-hover table-condensed">
						<tr>
							<th>姓名</th>
							<td><input name="xsid" id="zw_xueshengcombobox_edit"
								class="easyui-validatebox span2"
								data-options="required:true,width:140,height:29" value=""/></td>
							<th>批次</th>
							<td><input name="pici" type="text" placeholder="请输入"
								class="easyui-validatebox span2" data-options="required:true"></td>

						</tr>
						<tr>
							<th>科目</th>
							<td><input name="kemu" type="text" placeholder="请输入"
								class="easyui-validatebox span2" data-options="required:true"></td>
							<th>时间</th>
							<td><input name="shijian" type="text" placeholder="请输入"
								class="easyui-validatebox span2" data-options="required:true"></td>

						</tr>
						<tr>
							<th>考场</th>
							<td><input name="kaochang" type="text" placeholder="请输入"
								class="easyui-validatebox span2" data-options="required:true"></td>
							<th>试室</th>
							<td><input name="shishi" type="text" placeholder="请输入"
								class="easyui-validatebox span2" data-options="required:true"></td>
						</tr>
						<tr>
							<th>座位号</th>
							<td><input name="zuoweihao" type="text" placeholder="请输入"
								class="easyui-validatebox span2" data-options="required:true"></td>
							<th>地址</th>
							<td><input name="dizhi" type="text" placeholder="请输入"
								class="easyui-validatebox span2" data-options="required:true"></td>
						</tr>
						<tr>
						<th>答题卡</th>
							<td><select name="datika"
								class="easyui-combobox easyui-validatebox"
								data-options="required:true,width:140,height:29,editable:false,panelHeight:'auto'">
									<option value="1" selected="selected">是</option>
									<option value="0">否</option>

							</select></td>
							<th>是否已经发送</th>
							<td><select name="isSend"
								class="easyui-combobox easyui-validatebox"
								data-options="required:true,width:140,height:29,editable:false,panelHeight:'auto'">
									<option value="1" selected="selected">发送</option>
									<option value="0">未发送</option>
									<option value="2">发送失败</option>

							</select></td>

						</tr>

					</table>
				</form>
				<hr />
				<ul>
					<li>1:初次添加时，《是否已经发送》请选择未发送</li>
				</ul>
			</div>
		</div>
	</div>
	<div id="dlg-buttons">
		<a href="javascript:void(0)" class="easyui-linkbutton"
			ng-click="submit()">确定</a> <a href="javascript:void(0)"
			class="easyui-linkbutton"
			onclick="javascript:$('#dlg').dialog('close')">取消</a>
	</div>
		<div id="dlg3" class="easyui-dialog"
		style="width: 550px; height: 250px; padding: 5px 10px" closed="true"
		buttons="#dlg-buttons3" data-options="resizable:true,modal:true">

		<div class="easyui-layout" data-options="fit:true,border:false">
			<div data-options="region:'center',border:false" title=""
				style="overflow: hidden;">
				<form id="fm3" method="post">
					请输入批次: <input  name="pici" id="pici" />
				</form>
			</div>
		</div>
	</div>
	<div id="dlg-buttons3">
		<a href="javascript:void(0)" class="easyui-linkbutton"
			ng-click="submitGetZw()">确定</a> <a href="javascript:void(0)"
			class="easyui-linkbutton"
			onclick="javascript:$('#dlg3').dialog('close')">取消</a>
	</div>
	<div id="dlg4" class="easyui-dialog"
		style="width: 550px; height: 250px; padding: 5px 10px" closed="true"
		buttons="#dlg-buttons4" data-options="resizable:true,modal:true">

		<div class="easyui-layout" data-options="fit:true,border:false">
			<div data-options="region:'center',border:false" title=""
				style="overflow: hidden;">
				<form id="fm4" method="post">
				<h2>发送 座位 ,请确认好再提交</h2>
				<hr/>
					请输入批次: <input  name="pici" id="pici" />
				</form>
			</div>
		</div>
	</div>
	<div id="dlg-buttons4">
		<a href="javascript:void(0)" class="easyui-linkbutton"
			ng-click="submitSendZw()">确定</a> <a href="javascript:void(0)"
			class="easyui-linkbutton"
			onclick="javascript:$('#dlg4').dialog('close')">取消</a>
	</div>
	<div ng-init="load()"></div>
	@};var js={
	<script type="text/javascript">
var  formatterFun=function(value, row, index) {
		var str = '';
		
		@if( so.hasPermission("/business/xuesheng/edit")) 
			str += $.formatString('<img ng-show="so_edit" onclick="$(this).scope().editFun(\'{0}\')"  src="{1}" title="编辑"/> ', row.ksId, PATH+'/static/js/ext/style/images/extjs_icons/bug/bug_edit.png');
		str += '&nbsp;';
		@if( so.hasPermission("/business/xuesheng/delete")) 
			str += $.formatString('<img ng-show="so_delete" onclick="$(this).scope().deleteFun(\'{0}\');" src="{1}" title="删除"/>', row.ksId, PATH+'/static/js/ext/style/images/extjs_icons/bug/bug_delete.png');
		str += '&nbsp;';
		@if( so.hasPermission("/business/xuesheng/status")) 
			str += $.formatString('<img ng-show="so_status" onclick="$(this).scope().statusFun(\'{0}\',1);" src="{1}" title="修改状态"/>', row.ksId, PATH+'/static/js/ext/style/images/extjs_icons/bug/bug_go.png');
		@
			return str;
}
</script>
	<script type="text/javascript"
		src="${CONTEXT_PATH}/static/js/ajaxfileupload.js" charset="utf-8"></script>
	<script src="${CONTEXT_PATH}/static/app/ctrls/kaoshizw-ctrls.js"
		type="text/javascript"></script>
	@};include("../layout/_layout.html",{head:head,body:body,js:js,ctrls:ctrls}){}
